﻿using System.Collections;
using System.Collections.Generic;



namespace Fine.Utils.Functions
{
    public static class ICollectionExt
    {
        public static bool IsEmpty<T>(this ICollection<T> collection)
        {
            return collection == null || collection.Count == 0;
        }

        public static bool IsEmpty(this ICollection collection)
        {
            return collection == null || collection.Count == 0;
        }


        public static bool IsNotEmpty<T>(this ICollection<T> collection)
        {
            return collection != null && collection.Count > 0;
        }

        public static bool IsNotEmpty(this ICollection collection)
        {
            return collection != null && collection.Count > 0;
        }
    }
}
